package com.woniuxy.movice.pojo;


import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.woniuxy.movice.entity.Cinema;
import com.woniuxy.movice.entity.Movie;
import com.woniuxy.movice.entity.Rounds;
import com.woniuxy.movice.entity.Users;

public class Order implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = 6288984788067669025L;

	private Integer oid;

    private String onum;

    private String selectedSets;

    private Integer ostate;

    private Users user;

    private Movie movie;

    private Rounds round;

    private  Cinema cinema;

    private BigDecimal oprice;
    @JsonFormat(pattern="yyyy-MM-dd hh:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date otime;
    private String payCode;
    @JsonFormat(pattern="yyyy-MM-dd hh:mm:ss",timezone = "GMT+8")
    private Date ptime;
	public Integer getOid() {
		return oid;
	}
	public void setOid(Integer oid) {
		this.oid = oid;
	}
	public String getOnum() {
		return onum;
	}
	public void setOnum(String onum) {
		this.onum = onum;
	}
	public String getSelectedSets() {
		return selectedSets;
	}
	public void setSelectedSets(String selectedSets) {
		this.selectedSets = selectedSets;
	}
	public Integer getOstate() {
		return ostate;
	}
	public void setOstate(Integer ostate) {
		this.ostate = ostate;
	}
	public Users getUser() {
		return user;
	}
	public void setUser(Users user) {
		this.user = user;
	}
	public Movie getMovie() {
		return movie;
	}
	public void setMovie(Movie movie) {
		this.movie = movie;
	}
	public Rounds getRound() {
		return round;
	}
	public void setRound(Rounds round) {
		this.round = round;
	}
	public Cinema getCinema() {
		return cinema;
	}
	public void setCinema(Cinema cinema) {
		this.cinema = cinema;
	}
	public BigDecimal getOprice() {
		return oprice;
	}
	public void setOprice(BigDecimal oprice) {
		this.oprice = oprice;
	}
	public Date getOtime() {
		return otime;
	}
	public void setOtime(Date otime) {
		this.otime = otime;
	}
	public String getPayCode() {
		return payCode;
	}
	public void setPayCode(String payCode) {
		this.payCode = payCode;
	}
	public Date getPtime() {
		return ptime;
	}
	public void setPtime(Date ptime) {
		this.ptime = ptime;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	@Override
	public String toString() {
		return "Order [oid=" + oid + ", onum=" + onum + ", selectedSets=" + selectedSets + ", ostate=" + ostate
				+ ", user=" + user + ", movie=" + movie + ", round=" + round + ", cinema=" + cinema + ", oprice="
				+ oprice + ", otime=" + otime + ", payCode=" + payCode + ", ptime=" + ptime + "]";
	}
	
}